package com.um.psystem.service.mtService;

import com.um.psystem.model.vo.JsonResult;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletResponse;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;

/**
 * @Auther: qy
 * @Date: 2020/9/27 - 20:31
 * @Description: com.um.psystem.service.mtService
 * @version: 1.0
 */
public interface IAssetsDeliveryService {
    List<Map<String,Object>> getDeliveryList(Map map);
    List<Map<String,Object>> getMtInfo(Map map);
    List<Map<String,Object>> getDeliveryInfo(Map map);

    @Transactional
    JsonResult<Integer> updateMtDeliveryRecord(Map map);
    @Transactional
    JsonResult<Integer> addMtDeliveryRecord(Map map);
    @Transactional
    JsonResult<Integer> deleMtDeliveryRecord(Integer id);

    void exportDelivetyData(HttpServletResponse response, @RequestParam Map map);

    JsonResult<Integer> updateMtDeliveryRecordState(Map map);

    Boolean erpIsExist(String erp);
}
